#pragma once
#include "../libs/libpng/png.h"
#include "../Primitives/IPrimitive.h"
#include "../Math/Vector.h"
#include <string>
using namespace std;
class Texture
{
public:
	Texture(string filename);
	~Texture(void);
	void draw(IPixelDrawer* dr);
	COLOR getPixel(Vec3& uv); 
	unsigned char *data;
	int w,h,_wXh;
	int size;
	png_uint_32 rowbytes;
};

